<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of soaUsers
 *
 * @author dxx
 */

namespace app\common\model\oms;

use think\Model;

class Staffs extends Model {

    protected $table = 'staffs';
    protected $connection = ['database' => 'oms'];

    /**
     * 通过条件获取职员门店关系表
     * @param type $condition
     * @param type $field
     * @return type
     */
    public function getStaffInfoByCondtion($condition, $field = '*') {
        return $this->where($condition)->field($field)->find();
    }

}
